package com.smfx.yxt.view;

import java.util.List;

import com.smfx.yxt.common.Const;
import com.smfx.yxt.wechat.utils.WechatGlobalMap;

public class ClassForExamRegView {

	private Integer grade;
	
	private Integer clazz;
	
	private Integer schoolId;

	private String scoreTeacherName;
	
	private Integer scoreTeacherId;
	
	private List<ClassForExamRegView> classList;

	public Integer getGrade() {
		return grade;
	}

	public void setGrade(Integer grade) {
		this.grade = grade;
	}

	public Integer getClazz() {
		return clazz;
	}

	public void setClazz(Integer clazz) {
		this.clazz = clazz;
	}

	public Integer getSchoolId() {
		return schoolId;
	}

	public void setSchoolId(Integer schoolId) {
		this.schoolId = schoolId;
	}

	public String getScoreTeacherName() {
		return scoreTeacherName;
	}

	public void setScoreTeacherName(String scoreTeacherName) {
		this.scoreTeacherName = scoreTeacherName;
	}

	public Integer getScoreTeacherId() {
		return scoreTeacherId;
	}

	public void setScoreTeacherId(Integer scoreTeacherId) {
		this.scoreTeacherId = scoreTeacherId;
	}

	public List<ClassForExamRegView> getClassList() {
		return classList;
	}

	public void setClassList(List<ClassForExamRegView> classList) {
		this.classList = classList;
	}
	
	public String getGradeText(){
		TermView view = (TermView) WechatGlobalMap.get(Const.CACHE_TERM).getValue();
		String grade = view.getGradeName(this.grade);
		if(grade == null) return "无";
		return grade;
	}
}
